import React, { useState } from "react";
import ErrorCatch from "@qtrade/error-catch";
import Emitter from "./Emitter";
import Listener from "./Listener";
import './style.less'
// import f from "react/index";
// console.log('fl:',f);

import { name } from "@/components/test";
console.log("[fl log]:", name);

import { store } from "base/store";
console.log("===fl store==", store);
function App() {
  const [nums, setNums] = useState([0, 1]);

  return (
    <div>
      <span className="test">Hello world fl,color should be rgba(245, 225, 175, 0.5)</span>
      <div>
        {nums.map((n) => (
          <button onClick={(e) => setNums(null as unknown as number[])} key={n}>
            点击报错:{n}
          </button>
        ))}
      </div>
      <Emitter />
      <Listener />
    </div>
  );
}

export default ErrorCatch(App);
